#include "Blocks/CellDoorBlock.h"

namespace PocketSurvival
{
    int32_t CellDoorBlock::getIndex()
    {
        return Index();
    }
    const std::string &CellDoorBlock::getBlockName()
    {
        static std::string blockName = "CellDoorBlock";
        return blockName;
    }

    const std::vector<BoundingBox> &CellDoorBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t num = Terrain::ExtractData(value);
        if (num < GET_ARRAY_LEN(BlockConstans::cellDoorCollisionBoxes))
        {
            return BlockConstans::cellDoorCollisionBoxes[num];
        }
        return BlockConstans::zeroCollisionBoxes;
    }

} // namespace PocketSurvival
